package com.bc.service.deal;

import android.content.Context;

import com.bc.service.deal.Bitstamp.BitstampService;
import com.bc.service.deal.Btc100.Btc100Service;
import com.bc.service.deal.BtcChina.BtcChinaService;
import com.bc.service.deal.BtcTrade.BtcTradeService;
import com.bc.service.deal.CHBtc.CHBtcService;
import com.bc.service.deal.FXBtc.FXBtcService;
import com.bc.service.deal.HuoBi.HuoBiService;
import com.bc.service.deal.MtGox.MtGoxService;
import com.bc.service.deal.OKBtc.OKBtcService;
import com.bc.service.deal.QJLfutures.QJLfuturesService;

public class ServiceFractory {
	
	public static ServiceCategory createService(Context context, String type) {
		type = type.trim();
		if (type.equals("bitstampTicker")) {
			return new BitstampService(context);
		} else if (type.equals("btc100Ticker")) {
			return new Btc100Service(context);
		} else if (type.equals("btcchinaTicker")) {
			return new BtcChinaService(context);
		} else if (type.equals("btctradeTicker")) {
			return new BtcTradeService(context);
		} else if (type.equals("chbtcTicker")) {
			return new CHBtcService(context);
		} else if (type.equals("fxbtcTicker")) {
			return new FXBtcService(context);
		} else if (type.equals("huobiTicker")) {
			return new HuoBiService(context);
		} else if (type.equals("MtGoxTicker")) {
			return new MtGoxService(context);
		} else if (type.equals("okcoinTicker")) {
			return new OKBtcService(context);
		} else if (type.equals("796futuresTicker")) {
			return new QJLfuturesService(context);
		}
		return null;
	}
}
